home *** CD-ROM | disk | FTP | other *** search
/ Windows Expert / Windows Expert.iso / windownt / awksrc.zip / PROTOS.H < prev    next >
C/C++ Source or Header  |  1993-09-28  |  4KB  |  117 lines

  1. /*
  2.  * protos.h -- function prototypes for when the headers don't have them.
  3.  */
  4.  
  5. /* 
  6.  * Copyright (C) 1991, 1992, the Free Software Foundation, Inc.
  7.  * 
  8.  * This file is part of GAWK, the GNU implementation of the
  9.  * AWK Progamming Language.
  10.  * 
  11.  * GAWK is free software; you can redistribute it and/or modify
  12.  * it under the terms of the GNU General Public License as published by
  13.  * the Free Software Foundation; either version 2 of the License, or
  14.  * (at your option) any later version.
  15.  * 
  16.  * GAWK is distributed in the hope that it will be useful,
  17.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  18.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  19.  * GNU General Public License for more details.
  20.  * 
  21.  * You should have received a copy of the GNU General Public License
  22.  * along with GAWK; see the file COPYING.  If not, write to
  23.  * the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  24.  */
  25.  
  26. #ifdef __STDC__
  27. #define aptr_t void *    /* arbitrary pointer type */
  28. #else
  29. #define aptr_t char *
  30. #endif
  31. extern aptr_t malloc P((MALLOC_ARG_T));
  32. extern aptr_t realloc P((aptr_t, MALLOC_ARG_T));
  33. extern aptr_t calloc P((MALLOC_ARG_T, MALLOC_ARG_T));
  34.  
  35. extern void free P((aptr_t));
  36. extern int getopt P((int argc, char **argv, char *optstring));
  37. extern char *getenv P((char *));
  38.  
  39. extern char *strcpy P((char *, const char *));
  40. extern char *strcat P((char *, const char *));
  41. extern char *strncpy P((char *, const char *, int));
  42. extern int strcmp P((const char *, const char *));
  43. extern int strncmp P((const char *, const char *, int));
  44. #ifndef VMS
  45. extern char *strerror P((int));
  46. #else
  47. extern char *strerror P((int,...));
  48. #endif
  49. extern char *strchr P((const char *, int));
  50. extern char *strrchr P((const char *, int));
  51. extern char *strstr P((const char *s1, const char *s2));
  52. extern int strlen P((const char *));
  53. extern long strtol P((const char *, char **, int));
  54. #if !defined(_MSC_VER) && !defined(__GNU_LIBRARY__)
  55. extern int strftime P((char *, int, const char *, const struct tm *));
  56. #endif
  57. extern time_t time P((time_t *));
  58. extern aptr_t memset P((aptr_t, int, size_t));
  59. extern aptr_t memcpy P((aptr_t, const aptr_t, size_t));
  60. extern aptr_t memmove P((aptr_t, const aptr_t, size_t));
  61. extern aptr_t memchr P((const aptr_t, int, size_t));
  62. extern int memcmp P((const aptr_t, const aptr_t, size_t));
  63.  
  64. /* extern int fprintf P((FILE *, char *, ...)); */
  65. extern int fprintf P(());
  66. #if !defined(MSDOS) && !defined(__GNU_LIBRARY__)
  67. extern int fwrite P((const char *, int, int, FILE *));
  68. extern int fputs P((const char *, FILE *));
  69. extern int unlink P((const char *));
  70. #endif
  71. extern int fflush P((FILE *));
  72. extern int fclose P((FILE *));
  73. extern FILE *popen P((const char *, const char *));
  74. extern int pclose P((FILE *));
  75. extern void abort P(());
  76. extern int isatty P((int));
  77. extern void exit P((int));
  78. extern int system P((const char *));
  79. extern int sscanf P((/* char *, char *, ... */));
  80. #ifndef toupper
  81. extern int toupper P((int));
  82. #endif
  83. #ifndef tolower
  84. extern int tolower P((int));
  85. #endif
  86.  
  87. extern double pow P((double x, double y));
  88. extern double atof P((const char *));
  89. extern double strtod P((const char *, char **));
  90. extern int fstat P((int, struct stat *));
  91. extern int stat P((const char *, struct stat *));
  92. extern off_t lseek P((int, off_t, int));
  93. extern int fseek P((FILE *, long, int));
  94. extern int close P((int));
  95. extern int creat P(());
  96. extern int open P(());
  97. extern int pipe P((int *));
  98. extern int dup P((int));
  99. extern int dup2 P((int,int));
  100. extern int fork P(());
  101. extern int execl P((/* char *, char *, ... */));
  102. extern int read P((int, char *, int));
  103. extern int wait P((int *));
  104. extern void _exit P((int));
  105.  
  106. #ifndef __STDC__
  107. extern long time P((long *));
  108. #endif
  109.  
  110. #ifdef NON_STD_SPRINTF
  111. extern char *sprintf();
  112. #else
  113. extern int sprintf();
  114. #endif /* SPRINTF_INT */
  115.  
  116. #undef aptr_t
  117.